#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

//13 - 00000000000000000000000000001101
// 1 - 00000000000000000000000000000001

int main()
{
	int num = 15;
	int ret = 1;
	int count = 0;
	int i = 0;
	for (i = 0; i < 32; i++)
	{
		if (num & ret)
		{
			count++;
		}
		ret = ret << 1;
	}
	printf("count=%d\n", count);
	return 0;
}